package homework;

public class homework44 {
    public static void main(String[] args) {

        //1.
//        Scanner scan = new Scanner(System.in);
//        System.out.println("请输入数字");
//        int num = scan.nextInt();
//        if (num>0){
//            System.out.println("+");
//        } else if (num<0) {
//            System.out.println("-");
//        }else {
//            System.out.println("0");
//        }

//        //2.
//        Scanner scan = new Scanner(System.in);
//        System.out.println("请输入年份");
//        int year = scan.nextInt();
//        System.out.println("请输入月份");
//        int mouth = scan.nextInt();
//        switch (mouth){
//            case 1:
//                System.out.println(year+"年"+mouth+"有"+"31天");
//            case 2:
//                System.out.println(year+"年"+mouth+"有"+"28天");
//            case 3:
//                System.out.println(year+"年"+mouth+"有"+"31天");
//            case 4:
//                System.out.println(year+"年"+mouth+"有"+"30天");
//            case 5:
//                System.out.println(year+"年"+mouth+"有"+"31天");
//            case 6:
//                System.out.println(year+"年"+mouth+"有"+"30天");
//            case 7:
//                System.out.println(year+"年"+mouth+"有"+"31天");
//            case 8:
//                System.out.println(year+"年"+mouth+"有"+"31天");
//            case 9:
//                System.out.println(year+"年"+mouth+"有"+"30天");
//            case 10:
//                System.out.println(year+"年"+mouth+"有"+"31天");
//            case 11:
//                System.out.println(year+"年"+mouth+"有"+"30天");
//            case 12:
//                System.out.println(year+"年"+mouth+"有"+"31天");
//        }

        //3.
        int count=0;
       for (int year=1900;year<=2023;year+=4){
           if (year%4==0 && year%100!=0 || year%400==0){
               System.out.print(year+" ");
               count++;
               if (count%10==0){
                   System.out.println();
               }
           }
       }

    }
}
